package com.itheima.demo02;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/13 11:44
 */

public class Demo {
    //测试类(Demo)：里面有main方法，main方法中的代码步骤如下,
    // 创建生产者线程和消费者线程对象,分别开启两个线程
    public static void main(String[] args) {
        Desk desk = new Desk();
        Fooder f = new Fooder(desk);
        Cooker c = new Cooker(desk);
        f.start();
        c.start();
    }
}


